#pragma once
#include "GCapture.h"
class CaptureFactoryImpl : public GCaptureFactory
{
public:
    CaptureFactoryImpl() {}
    virtual ~CaptureFactoryImpl(void) {}
    virtual bool InitGlobal() { return true; }
    virtual GCamera* ConnectCamera(int iCamid, ProcessCallback process, EventCallback evt, void* pContext); //Camera id is based 1
    virtual void ReleaseCamera(GCamera*& pCam);
    virtual const wchar_t* GetLastError() { return m_LastError; }
private:
    wchar_t m_LastError[256] = { 0 };
};

